var async = require("async")
var fly = require('flyio')

var req =async function (time,name,callback) {   //发起请求
 // await  setTimeout(()=>300,2000)
    await new Promise(resolve => setTimeout(resolve,time))
   console.log(name)
    callback(null,name)
     //return "11111" + name
}
//cc(5000,"first")
async.waterfall([req(300,"first"),req(300,"second"),req(300,"third")],function (err,result) {
    console.log(result)
})






//console.log(fun1())
/*
var fun2 = function (v1) {
    return v1 + "====fun2"
}

async.auto({

},function (err,results) {
    log(results)
})
*/
